package org.jeecg.entity.meter;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.jeecg.common.aspect.annotation.Dict;
import org.jeecg.modules.system.entity.BaseEntity;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * @Description: 仪表收费项
 * @Author: liurui
 * @Date:   2020-11-20
 * @Version: V1.0
 */
@Data
@TableName("meter_fee_rule")
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="meter_fee_rule对象", description="仪表收费项")
public class MeterFeeRule extends BaseEntity  {
    
	/**创建者id*/
    @ApiModelProperty(value = "创建者id")
	private String createBy;
	/**创建时间*/
	@Excel(name = "创建时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建时间")
	private Date createTime;
	/**delFlag*/
    @ApiModelProperty(value = "delFlag")
	private String delFlag;
	/**结束收费时间*/
	@Excel(name = "结束收费时间", width = 20, format = "yyyy-MM-dd")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @ApiModelProperty(value = "结束收费时间")
	private Date endTime;
	/**收费项名称*/
	@Excel(name = "收费项名称", width = 15)
    @ApiModelProperty(value = "收费项名称")
	private String feeName;
	/**id*/
	@TableId(type = IdType.UUID)
    @ApiModelProperty(value = "id")
	private String id;
	/**发票的商品分类Id*/
    @ApiModelProperty(value = "发票的商品分类Id")
	private Integer invoiceClass;
	/**启动状态  1:启用  0：禁用*/
	@Excel(name = "启动状态  1:启用  0：禁用", width = 15)
    @ApiModelProperty(value = "启动状态  1:启用  0：禁用")
	@Dict(dicCode = "is_enabled")
	private Integer isEnabled;
	/**计费精度(0:元 1:角 2:分 分别对应小数点后的位数)*/
	@Excel(name = "计费精度(0:元 1:角 2:分 分别对应小数点后的位数)", width = 15)
    @ApiModelProperty(value = "计费精度(0:元 1:角 2:分 分别对应小数点后的位数)")
	@Dict(dicCode = "fee_precision")
	private Integer feePrecision;
	/**单价*/
	@Excel(name = "单价", width = 15)
    @ApiModelProperty(value = "单价")
	private java.math.BigDecimal feePrice;
	/**项目id*/
    @ApiModelProperty(value = "项目id")
	private String projectId;

	/**税率*/
	@Excel(name = "税率", width = 15)
    @ApiModelProperty(value = "税率")
	private String rate;
	/**备注*/
	@Excel(name = "备注", width = 15)
    @ApiModelProperty(value = "备注")
	private String remarks;
	/**舍入模式 4:四舍五入，0:向上，1:向下*/
	@Excel(name = "舍入模式 4:四舍五入，0:向上，1:向下", width = 15)
	@ApiModelProperty(value = "舍入模式 4:四舍五入，0:向上，1:向下")
	@Dict(dicCode = "round_mode")
	private Integer roundMode;
	/**开始收费时间*/
	@Excel(name = "开始收费时间", width = 20, format = "yyyy-MM-dd")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @ApiModelProperty(value = "开始收费时间")
	private Date startTime;
	/**tenantId*/
    @ApiModelProperty(value = "tenantId")
	private String tenantId;
	/**修改者id*/
    @ApiModelProperty(value = "修改者id")
	private String updateBy;
	/**修改时间*/
	@Excel(name = "修改时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "修改时间")
	private Date updateTime;

	/**项目名称*/
	@Excel(name = "项目名称", width = 15)
	@ApiModelProperty(value = "项目名称")
	@TableField(exist = false)
	private String projectName;

	/**项目名称*/
	@Excel(name = "绑定收费目标数", width = 15)
	@ApiModelProperty(value = "绑定收费目标数")
	@TableField(exist = false)
	private String bindCount;

	private String itemId;
}
